/**
 * @file time.hh
 * @author Bono.ASUN.TamGitsun (gitsun.tam@outlook.com)
 * @brief 
 * @version 0.1
 * @date 2022-02-07
 * 
 * @copyright Copyright (c) 2022
 * 
 */


#pragma once


#include <stdint.h>
#include <ctime>


namespace TGS::utils {


#ifdef __WIN32__

#define msleep(milliseconds) Sleep(milliseconds)

#elif __linux__

#define msleep(milliseconds) usleep(milliseconds * 1000)

#endif


inline time_t get_time_second(void)
{
    return time(nullptr);
}

uint64_t get_time_millisecond(void);


}
